﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace UMLDesigner
{
    public partial class ExportCode : Form
    {
        public ExportCode()
        {
            InitializeComponent();
        }

        private void btnBrowser_click(object sender, EventArgs e)
        {
            DialogResult result = folderBrowserDialog.ShowDialog();
            if (result == DialogResult.OK)
            {
                textBoxPath.Text = folderBrowserDialog.SelectedPath;
            }
        }

        private void btnAccept_click(object sender, EventArgs e)
        {
            WindowsManager.ExportToCode(textBoxNameSpace.Text, textBoxPath.Text);
            Close();
        }

        private void btnCancel_click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
